from django.conf.urls import url, include

from . import views

urlpatterns = [
    # 查询所有标签
    url(r'^labels/$', views.LableAPIView.as_view()),
    # 关注标签
    url(r'^labels/(\d+)/focusin/$', views.LableAPIView.as_view()),
    # 取消关注标签
    url(r'^labels/(\d+)/focusout/$', views.LableFocusoutAPiView.as_view()),
    # 标签详情
    url(r'^labels/(\d+)/$', views.LableListAPiView.as_view()),
#查询用户关注的标签
    url(r'^labels/users/', views.SelectLableAPIView.as_view()),
    # 最新回答问题
    url(r'^questions/(\d+)/label/new/$', views.QuestionsnewAPIView.as_view()),
    #发布问题
    url(r'^questions/$', views.QuestionsAPIView.as_view()),
    #热门回答的问题
    url(r'^questions/(\d+)/label/hot/$', views.QuestionshotAPIView.as_view()),
    #等带回答的问题
    url(r'^questions/(\d+)/label/wait/$', views.QuestionswaitAPIView.as_view()),
    #问题详情
    url(r'^questions/(\d+)/$', views.QuestionslistAPIView.as_view()),
    #问题有用
    url(r'^questions/(\d+)/useful/$', views.QuestionsUsefulAPIView.as_view()),
    #问题没用
    url(r'^questions/(\d+)/unuseful/$', views.QuestionsUnUsefulAPIView.as_view()),
    #回答问题
    url(r'^reply/$', views.ReplyAPIView.as_view()),
    #回答有用
    url(r'^reply/(\d+)/useful/$', views.ReplyUsefulAPIView.as_view()),
    #回答没用
    url(r'^reply/(\d+)/unuseful/$', views.ReplyUnUsefulAPIView.as_view()),

    url(r'^labels/full/$', views.LableAPIView.as_view()),
]
